<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>姓名案例_插值语法实现</title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<div id="root">
		姓: <input type="text"  v-model="firstName" /><br>
		名: <input type="text" v-model="lastName" /><br>
		全名: <span>{{firstName}}-{{lastName}}</span>
	</div>
	<body>
		<script type="text/javascript">
			Vue.config.productionTip = false;
			new Vue({
				el:"#root",
				data:{
					firstName:"张",
					lastName:"三"
					
				}
			})
		</script>
	</body>
</html>
